import request from '@/utils/request.js'

export function userLearnData(deptId, userId) {
  return request({
    url: `/course/history/learn/${deptId}/${userId}`,
    method: 'GET'
  })
}

export function courseHistoryInfo(userId, courseId) {
  return request({
    url: `/course/history/info/${userId}/${courseId}`,
    method: 'GET'
  })
}

export function record(userId, relationId, stemp) {
  return request({
    url: `/course/history/record/${userId}/${relationId}/${stemp}`,
    method: 'POST'
  })
}